const { normalizePath } = require('./utils')
const path = require('path')
async function resolveConfig() {
  // root指的当前命令所在的目录，也就是根目录
  const root = normalizePath(process.cwd()) // __dirname 当前文件所在目录
  const cacheDir = normalizePath(path.resolve(`node_modules/.vvite`))
  const config = {
    root,
    cacheDir,
  }
  return config
}

module.exports = resolveConfig
